package com.wzs.util;

import java.util.List;

/**
 * @author miaomiao
 * @version 1.0.0
 * @ClassName PageModel.java
 * @Description 用于分页的工具类
 * @createTime 2021-06-20- 15:00:00
 */
public class PageModel<T> {

    private int pageNum;    //当前页
    private int pageSize;   //每页显示的记录条数
    private int pageTotalNum;   //总页数
    private int totalRows;   //总条数
    private List<T> dataList;   //当前页的数据

    public int getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(int totalRows) {
        this.totalRows = totalRows;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageTotalNum() {
        return pageTotalNum;
    }

    public void setPageTotalNum(int pageTotalNum) {
        this.pageTotalNum = pageTotalNum;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }
}
